{extend name="common:base" /}
{block name="page_current"}
<div class="fui-page-group statusbar">
    <style>
        .fui-list-media img{height:1.6rem;width:1.6rem;}
    </style>
    <div class="fui-page order-express-page">
        <div class="fui-header">
            <div class="fui-header-left">
                <a class="back"></a>
            </div>
            <div class="title">物流信息</div>
            <div class="fui-header-right">&nbsp;</div>
        </div>
        <div class="fui-content">
            <div class="fui-list-group info-list">
                <div class="fui-list">
                    <a class="fui-list-media back">
                        {if(count($orderModel['subs']) > 0)}
                        <img src="{$orderModel['subs'][0]['goods_thumbs']}">
                        {/if}
                        <div class="title">{:count($orderModel['subs'])}件商品</div>
                    </a>
                    <div class="fui-list-inner">
                        <div class="title state">物流状态
                            {if (!empty($expressInfo))}
                            {if strpos($expressInfo[0]['context'],'已签收') !== false }
                            <span class="text-danger">已签收</span>
                            {elseif count($expressInfo)<=2 /}
                            <span class="text-primary">备货中</span>
                            {else /}
                            <span class="text-success">配送中</span>
                            {/if}
                            {/if}
                        </div>
                        <div class="text expcom">
                            <p>快递公司：{$orderModel['oe_express_com']}</p>
                            <p>快递单号：{$orderModel['oe_express_sn']}</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="fui-list-group express-list" style="margin-top: 0.5rem;">
                {volist name="expressInfo" id="e"}
                <div class="fui-list {if ($key < 1)}current{/if}">
                    <div class="fui-list-inner">
                        <div class="text step">{$e['context']}</div>
                        <div class="text time">{$e['time']}</div>
                    </div>
                </div>
                {/volist}
            </div>
        </div>
    </div>
</div>
{/block}
{block name="script"}
{/block}